package sdk.android.sms.utils;

public class PhoneNumberUtils {

	public static String getHipenNumber(String number){
		switch(number.length()){
			case 11:
				return number.substring(0, 3) + "-" + number.substring(3, 7) + "-" + number.substring(7, 11);
			case 10:
				return number.substring(0, 3) + "-" + number.substring(3, 6) + "-" + number.substring(6, 10);
			case 8:
				return number.substring(0, 4) + "-" + number.substring(4, 8);
		    default:
		    	return number;
		}
	}
}
